package com.pc.tas.export.expfilelist;

import org.apache.ibatis.session.RowBounds;
import org.springframework.beans.factory.annotation.Required;

import java.util.List;

public class ExpFileListService {
	private ExpFileListMapper em;
	
	public int insert(ExpFileList expFileList) {
		int id = em.insert(expFileList);
		return id;
	}
	
	public void update(ExpFileList expFileList){
		em.update(expFileList);
	}
	
	public void delete(int id){
		em.delete(id);
	}
	
	public ExpFileList getById(int id) {
		return em.getById(id);
	}
	
	public List<ExpFileList> getListByExpType(int expType,int offset,int limit){
		RowBounds rowBounds = new RowBounds(offset,limit);
		return em.getListByExpType(expType,rowBounds);
	}
	@Required
	public void setEm(ExpFileListMapper em) {
		this.em = em;
	}
}
